package cn.wen.yaling.xo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wen.yaling.commons.utils.PageUtils;
import cn.wen.yaling.commons.utils.Query;

import cn.wen.yaling.xo.dao.NoticesDao;
import cn.wen.yaling.commons.entity.NoticesEntity;
import cn.wen.yaling.xo.service.NoticesService;


@Service("noticesService")
public class NoticesServiceImpl extends ServiceImpl<NoticesDao, NoticesEntity> implements NoticesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<NoticesEntity> page = this.page(
                new Query<NoticesEntity>().getPage(params),
                new QueryWrapper<NoticesEntity>()
        );

        return new PageUtils(page);
    }

}